package Com.aji.h;

public class Oh7 {

	public static void main(String[] args) {
		for(int year=1998;year<=2008;year++) {
			if(year%4==0) {
				System.out.println(year+"");
			}else {
				System.out.println(year+"");
			}
		}
	}
}